# -*-  coding:utf-8 -*- 
# Author : lihongliang


names = ["alex","tenglan","aaa","eric","aaa","bbb","aaa","ccc","aaa","sfa"]

print(names[0])

print(names[1:4])
print(names[5:-1])
names.append("ddd")
print(names)
names.insert(2,"charu")
print(names)
names[2]="charuaaaa"
print(names)

del names[2]
print(names)
names.remove("aaa")
print(names)
names.pop()
print(names)

namesb = ["a","b","c"]
names.extend(namesb)
print(names)

name_copy = names.copy()
print(name_copy)
print(names.count("aaa"))

print(namesb.sort())

print(names.index("bbb"))


